package com.zhongwang.business.module.basic.dao;

import com.zhongwang.business.module.basic.model.DeptModel;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;


@Repository
public interface DeptDao {

    List<DeptModel> selectAll(String name);

    int saveAndFlush(DeptModel dept);

    DeptModel findByName(String name);

    int save(DeptModel dept);

    int updateStatusByIdWithRecursion(@Param("id") Integer id, @Param("status") int status);




}
